package com.aivin.leakcanarysample.activity;

import android.os.Bundle;
import android.view.View;

import androidx.appcompat.app.AppCompatActivity;

import com.aivin.leakcanarysample.R;
import com.aivin.leakcanarysample.tool.ActivityManage;

public class MainActivity2 extends AppCompatActivity implements View.OnClickListener {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_2);
        findViewById(R.id.finishActivity).setOnClickListener(this);
        //  ActivityManage.get().add(this); // 模拟内存泄漏
    }


    @Override
    public void onClick(View view) {
        finish();
    }
}
